Class CfnBuild
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::GameLift::Build
.
The AWS::GameLift::Build
resource creates a game server build that is installed and run on instances in an Amazon GameLift fleet. This resource points to an Amazon S3 location that contains a zip file with all of the components of the game server build.
Example:
// 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.*; CfnBuild cfnBuild = CfnBuild.Builder.create(this, "MyCfnBuild") .name("name") .operatingSystem("operatingSystem") .serverSdkVersion("serverSdkVersion") .storageLocation(StorageLocationProperty.builder() .bucket("bucket") .key("key") .roleArn("roleArn") // the properties below are optional .objectVersion("objectVersion") .build()) .version("version") .build();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnBuild
.static interface
Example:Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCreate a newAWS::GameLift::Build
.CfnBuild
(Construct scope, String id, CfnBuildProps props) Create a newAWS::GameLift::Build
.protected
CfnBuild
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnBuild
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptiongetName()
A descriptive label that is associated with a build.The operating system that your game server binaries run on.The Amazon GameLift Server SDK version used to develop your game server.Information indicating where your game build files are stored.Version information that is associated with this build.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
A descriptive label that is associated with a build.void
setOperatingSystem
(String value) The operating system that your game server binaries run on.void
setServerSdkVersion
(String value) The Amazon GameLift Server SDK version used to develop your game server.void
setStorageLocation
(IResolvable value) Information indicating where your game build files are stored.void
Information indicating where your game build files are stored.void
setVersion
(String value) Version information that is associated with this build.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnBuild
protected CfnBuild(software.amazon.jsii.JsiiObjectRef objRef) -
CfnBuild
protected CfnBuild(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnBuild
@Stability(Stable) public CfnBuild(@NotNull Construct scope, @NotNull String id, @Nullable CfnBuildProps props) Create a newAWS::GameLift::Build
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
CfnBuild
Create a newAWS::GameLift::Build
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrBuildId
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getName
A descriptive label that is associated with a build.Build names do not need to be unique.
-
setName
A descriptive label that is associated with a build.Build names do not need to be unique.
-
getOperatingSystem
The operating system that your game server binaries run on.This value determines the type of fleet resources that you use for this build. If your game build contains multiple executables, they all must run on the same operating system. You must specify a valid operating system in this request. There is no default value. You can't change a build's operating system later.
If you have active fleets using the Windows Server 2012 operating system, you can continue to create new builds using this OS until October 10, 2023, when Microsoft ends its support. All others must use Windows Server 2016 when creating new Windows-based builds.
-
setOperatingSystem
The operating system that your game server binaries run on.This value determines the type of fleet resources that you use for this build. If your game build contains multiple executables, they all must run on the same operating system. You must specify a valid operating system in this request. There is no default value. You can't change a build's operating system later.
If you have active fleets using the Windows Server 2012 operating system, you can continue to create new builds using this OS until October 10, 2023, when Microsoft ends its support. All others must use Windows Server 2016 when creating new Windows-based builds.
-
getServerSdkVersion
The Amazon GameLift Server SDK version used to develop your game server. -
setServerSdkVersion
The Amazon GameLift Server SDK version used to develop your game server. -
getStorageLocation
Information indicating where your game build files are stored.Use this parameter only when creating a build with files stored in an Amazon S3 bucket that you own. The storage location must specify an Amazon S3 bucket name and key. The location must also specify a role ARN that you set up to allow Amazon GameLift to access your Amazon S3 bucket. The S3 bucket and your new build must be in the same Region.
If a
StorageLocation
is specified, the size of your file can be found in your Amazon S3 bucket. Amazon GameLift will report aSizeOnDisk
of 0. -
setStorageLocation
Information indicating where your game build files are stored.Use this parameter only when creating a build with files stored in an Amazon S3 bucket that you own. The storage location must specify an Amazon S3 bucket name and key. The location must also specify a role ARN that you set up to allow Amazon GameLift to access your Amazon S3 bucket. The S3 bucket and your new build must be in the same Region.
If a
StorageLocation
is specified, the size of your file can be found in your Amazon S3 bucket. Amazon GameLift will report aSizeOnDisk
of 0. -
setStorageLocation
Information indicating where your game build files are stored.Use this parameter only when creating a build with files stored in an Amazon S3 bucket that you own. The storage location must specify an Amazon S3 bucket name and key. The location must also specify a role ARN that you set up to allow Amazon GameLift to access your Amazon S3 bucket. The S3 bucket and your new build must be in the same Region.
If a
StorageLocation
is specified, the size of your file can be found in your Amazon S3 bucket. Amazon GameLift will report aSizeOnDisk
of 0. -
getVersion
Version information that is associated with this build.Version strings do not need to be unique.
-
setVersion
Version information that is associated with this build.Version strings do not need to be unique.
-