@Generated(value="jsii-pacmak/1.60.0 (build ebcefe6)", date="2022-07-01T09:58:30.901Z") public class CfnBuild extends CfnResource implements IInspectable
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") .storageLocation(S3LocationProperty.builder() .bucket("bucket") .key("key") .roleArn("roleArn") // the properties below are optional .objectVersion("objectVersion") .build()) .version("version") .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnBuild.Builder
A fluent builder for
CfnBuild . |
static interface |
CfnBuild.S3LocationProperty
The location in Amazon S3 where build or script files are stored for access by Amazon GameLift.
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnBuild(Construct scope,
java.lang.String id)
Create a new `AWS::GameLift::Build`.
|
|
CfnBuild(Construct scope,
java.lang.String id,
CfnBuildProps props)
Create a new `AWS::GameLift::Build`.
|
protected |
CfnBuild(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnBuild(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getName()
A descriptive label that is associated with a build.
|
java.lang.String |
getOperatingSystem()
The operating system that the game server binaries are built to run on.
|
java.lang.Object |
getStorageLocation()
Information indicating where your game build files are stored.
|
java.lang.String |
getVersion()
Version information that is associated with this build.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setName(java.lang.String value)
A descriptive label that is associated with a build.
|
void |
setOperatingSystem(java.lang.String value)
The operating system that the game server binaries are built to run on.
|
void |
setStorageLocation(CfnBuild.S3LocationProperty value)
Information indicating where your game build files are stored.
|
void |
setStorageLocation(IResolvable value)
Information indicating where your game build files are stored.
|
void |
setVersion(java.lang.String value)
Version information that is associated with this build.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnBuild(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnBuild(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnBuild(Construct scope, java.lang.String id, CfnBuildProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties.public CfnBuild(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.String getName()
Build names do not need to be unique.
public void setName(java.lang.String value)
Build names do not need to be unique.
public java.lang.String getOperatingSystem()
This value determines the type of fleet resources that you can use for this build. If your game build contains multiple executables, they all must run on the same operating system. If an operating system is not specified when creating a build, Amazon GameLift uses the default value (WINDOWS_2012). This value cannot be changed later.
public void setOperatingSystem(java.lang.String value)
This value determines the type of fleet resources that you can use for this build. If your game build contains multiple executables, they all must run on the same operating system. If an operating system is not specified when creating a build, Amazon GameLift uses the default value (WINDOWS_2012). This value cannot be changed later.
public java.lang.Object getStorageLocation()
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 a SizeOnDisk
of 0.
public void setStorageLocation(IResolvable value)
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 a SizeOnDisk
of 0.
public void setStorageLocation(CfnBuild.S3LocationProperty value)
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 a SizeOnDisk
of 0.
public java.lang.String getVersion()
Version strings do not need to be unique.
public void setVersion(java.lang.String value)
Version strings do not need to be unique.