Class CfnContainerFleet
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.gamelift.CfnContainerFleet
- All Implemented Interfaces:
IInspectable,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-20T14:04:25.358Z")
@Stability(Stable)
public class CfnContainerFleet
extends CfnResource
implements IInspectable, ITaggableV2
The AWS::GameLift::ContainerFleet resource creates an Amazon GameLift (GameLift) container fleet to host game servers.
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.*;
CfnContainerFleet cfnContainerFleet = CfnContainerFleet.Builder.create(this, "MyCfnContainerFleet")
.fleetRoleArn("fleetRoleArn")
// the properties below are optional
.billingType("billingType")
.deploymentConfiguration(DeploymentConfigurationProperty.builder()
.impairmentStrategy("impairmentStrategy")
.minimumHealthyPercentage(123)
.protectionStrategy("protectionStrategy")
.build())
.description("description")
.gameServerContainerGroupDefinitionName("gameServerContainerGroupDefinitionName")
.gameServerContainerGroupsPerInstance(123)
.gameSessionCreationLimitPolicy(GameSessionCreationLimitPolicyProperty.builder()
.newGameSessionsPerCreator(123)
.policyPeriodInMinutes(123)
.build())
.instanceConnectionPortRange(ConnectionPortRangeProperty.builder()
.fromPort(123)
.toPort(123)
.build())
.instanceInboundPermissions(List.of(IpPermissionProperty.builder()
.fromPort(123)
.ipRange("ipRange")
.protocol("protocol")
.toPort(123)
.build()))
.instanceType("instanceType")
.locations(List.of(LocationConfigurationProperty.builder()
.location("location")
// the properties below are optional
.locationCapacity(LocationCapacityProperty.builder()
.desiredEc2Instances(123)
.maxSize(123)
.minSize(123)
.build())
.stoppedActions(List.of("stoppedActions"))
.build()))
.logConfiguration(LogConfigurationProperty.builder()
.logDestination("logDestination")
.s3BucketName("s3BucketName")
.build())
.metricGroups(List.of("metricGroups"))
.newGameSessionProtectionPolicy("newGameSessionProtectionPolicy")
.perInstanceContainerGroupDefinitionName("perInstanceContainerGroupDefinitionName")
.scalingPolicies(List.of(ScalingPolicyProperty.builder()
.metricName("metricName")
.name("name")
// the properties below are optional
.comparisonOperator("comparisonOperator")
.evaluationPeriods(123)
.policyType("policyType")
.scalingAdjustment(123)
.scalingAdjustmentType("scalingAdjustmentType")
.targetConfiguration(TargetConfigurationProperty.builder()
.targetValue(123)
.build())
.threshold(123)
.build()))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnContainerFleet.static interfaceDefines the range of ports on the instance that allow inbound traffic to connect with containers in a fleet.static interfaceProvides details about how to drain old tasks and replace them with new updated tasks.static interfaceProvides information about the last deployment ID and its status.static interfaceA policy that limits the number of game sessions a player can create on the same fleet.static interfaceA range of IP addresses and port settings that allow inbound traffic to connect to server processes on an Amazon GameLift hosting resource.static interfaceCurrent resource capacity settings in a specified fleet or location.static interfaceA remote location where a multi-location fleet can deploy EC2 instances for game hosting.static interfaceA policy the location and provider of logs from the fleet.static interfaceRule that controls how a fleet is scaled.static interfaceSettings for a target-based scaling policy.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnContainerFleet(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnContainerFleet(software.amazon.jsii.JsiiObjectRef objRef) CfnContainerFleet(software.constructs.Construct scope, String id, CfnContainerFleetProps props) -
Method Summary
Modifier and TypeMethodDescriptionA time stamp indicating when this data object was created.Provides information about the last deployment ID and its status.The Amazon Resource Name (ARN) that is assigned to a Amazon GameLift container fleet resource and uniquely identifies it across all AWS Regions.Unique fleet ID.The Amazon Resource Name (ARN) of the game server container group definition.The maximum number of game server container groups per instance, a number between 1-5000.The Amazon Resource Name (ARN) of the per instance container group definition.The current status of the container fleet.Indicates whether to use On-Demand instances or Spot instances for this fleet.Tag Manager which manages the tags for this resource.Provides details about how to drain old tasks and replace them with new updated tasks.A human-readable description of a fleet.A unique identifier for an AWS IAM role that manages access to your AWS services.The name of the container group definition that will be created per game server.The number of desired game server container groups per instance, a number between 1-5000.A policy that limits the number of game sessions a player can create on the same fleet.Defines the range of ports on the instance that allow inbound traffic to connect with containers in a fleet.A range of IP addresses and port settings that allow inbound traffic to connect to server processes on an Amazon GameLift server.The name of an EC2 instance type that is supported in Amazon GameLift.A policy the location and provider of logs from the fleet.The name of an Amazon CloudWatch metric group.A game session protection policy to apply to all game sessions hosted on instances in this fleet.The name of the container group definition that will be created per instance.A list of rules that control how a fleet is scaled.getTags()An array of key-value pairs to apply to this resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetBillingType(String value) Indicates whether to use On-Demand instances or Spot instances for this fleet.voidProvides details about how to drain old tasks and replace them with new updated tasks.voidProvides details about how to drain old tasks and replace them with new updated tasks.voidsetDescription(String value) A human-readable description of a fleet.voidsetFleetRoleArn(String value) A unique identifier for an AWS IAM role that manages access to your AWS services.voidThe name of the container group definition that will be created per game server.voidThe number of desired game server container groups per instance, a number between 1-5000.voidA policy that limits the number of game sessions a player can create on the same fleet.voidA policy that limits the number of game sessions a player can create on the same fleet.voidDefines the range of ports on the instance that allow inbound traffic to connect with containers in a fleet.voidDefines the range of ports on the instance that allow inbound traffic to connect with containers in a fleet.voidsetInstanceInboundPermissions(List<Object> value) A range of IP addresses and port settings that allow inbound traffic to connect to server processes on an Amazon GameLift server.voidA range of IP addresses and port settings that allow inbound traffic to connect to server processes on an Amazon GameLift server.voidsetInstanceType(String value) The name of an EC2 instance type that is supported in Amazon GameLift.voidsetLocations(List<Object> value) voidsetLocations(IResolvable value) voidsetLogConfiguration(IResolvable value) A policy the location and provider of logs from the fleet.voidA policy the location and provider of logs from the fleet.voidsetMetricGroups(List<String> value) The name of an Amazon CloudWatch metric group.voidA game session protection policy to apply to all game sessions hosted on instances in this fleet.voidThe name of the container group definition that will be created per instance.voidsetScalingPolicies(List<Object> value) A list of rules that control how a fleet is scaled.voidsetScalingPolicies(IResolvable value) A list of rules that control how a fleet is scaled.voidAn array of key-value pairs to apply to this resource.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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
-
CfnContainerFleet
protected CfnContainerFleet(software.amazon.jsii.JsiiObjectRef objRef) -
CfnContainerFleet
protected CfnContainerFleet(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnContainerFleet
@Stability(Stable) public CfnContainerFleet(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnContainerFleetProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrCreationTime
A time stamp indicating when this data object was created.Format is a number expressed in Unix time as milliseconds (for example "1469498468.057").
-
getAttrDeploymentDetails
Provides information about the last deployment ID and its status. -
getAttrFleetArn
The Amazon Resource Name (ARN) that is assigned to a Amazon GameLift container fleet resource and uniquely identifies it across all AWS Regions. -
getAttrFleetId
Unique fleet ID. -
getAttrGameServerContainerGroupDefinitionArn
The Amazon Resource Name (ARN) of the game server container group definition.This field will be empty if GameServerContainerGroupDefinitionName is not specified.
-
getAttrMaximumGameServerContainerGroupsPerInstance
The maximum number of game server container groups per instance, a number between 1-5000. -
getAttrPerInstanceContainerGroupDefinitionArn
The Amazon Resource Name (ARN) of the per instance container group definition.This field will be empty if PerInstanceContainerGroupDefinitionName is not specified.
-
getAttrStatus
The current status of the container fleet. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getFleetRoleArn
A unique identifier for an AWS IAM role that manages access to your AWS services. -
setFleetRoleArn
A unique identifier for an AWS IAM role that manages access to your AWS services. -
getBillingType
Indicates whether to use On-Demand instances or Spot instances for this fleet. -
setBillingType
Indicates whether to use On-Demand instances or Spot instances for this fleet. -
getDeploymentConfiguration
Provides details about how to drain old tasks and replace them with new updated tasks. -
setDeploymentConfiguration
Provides details about how to drain old tasks and replace them with new updated tasks. -
setDeploymentConfiguration
@Stability(Stable) public void setDeploymentConfiguration(@Nullable CfnContainerFleet.DeploymentConfigurationProperty value) Provides details about how to drain old tasks and replace them with new updated tasks. -
getDescription
A human-readable description of a fleet. -
setDescription
A human-readable description of a fleet. -
getGameServerContainerGroupDefinitionName
The name of the container group definition that will be created per game server. -
setGameServerContainerGroupDefinitionName
The name of the container group definition that will be created per game server. -
getGameServerContainerGroupsPerInstance
The number of desired game server container groups per instance, a number between 1-5000. -
setGameServerContainerGroupsPerInstance
The number of desired game server container groups per instance, a number between 1-5000. -
getGameSessionCreationLimitPolicy
A policy that limits the number of game sessions a player can create on the same fleet. -
setGameSessionCreationLimitPolicy
A policy that limits the number of game sessions a player can create on the same fleet. -
setGameSessionCreationLimitPolicy
@Stability(Stable) public void setGameSessionCreationLimitPolicy(@Nullable CfnContainerFleet.GameSessionCreationLimitPolicyProperty value) A policy that limits the number of game sessions a player can create on the same fleet. -
getInstanceConnectionPortRange
Defines the range of ports on the instance that allow inbound traffic to connect with containers in a fleet. -
setInstanceConnectionPortRange
Defines the range of ports on the instance that allow inbound traffic to connect with containers in a fleet. -
setInstanceConnectionPortRange
@Stability(Stable) public void setInstanceConnectionPortRange(@Nullable CfnContainerFleet.ConnectionPortRangeProperty value) Defines the range of ports on the instance that allow inbound traffic to connect with containers in a fleet. -
getInstanceInboundPermissions
A range of IP addresses and port settings that allow inbound traffic to connect to server processes on an Amazon GameLift server. -
setInstanceInboundPermissions
A range of IP addresses and port settings that allow inbound traffic to connect to server processes on an Amazon GameLift server. -
setInstanceInboundPermissions
A range of IP addresses and port settings that allow inbound traffic to connect to server processes on an Amazon GameLift server. -
getInstanceType
The name of an EC2 instance type that is supported in Amazon GameLift. -
setInstanceType
The name of an EC2 instance type that is supported in Amazon GameLift. -
getLocations
-
setLocations
-
setLocations
-
getLogConfiguration
A policy the location and provider of logs from the fleet. -
setLogConfiguration
A policy the location and provider of logs from the fleet. -
setLogConfiguration
@Stability(Stable) public void setLogConfiguration(@Nullable CfnContainerFleet.LogConfigurationProperty value) A policy the location and provider of logs from the fleet. -
getMetricGroups
The name of an Amazon CloudWatch metric group. -
setMetricGroups
The name of an Amazon CloudWatch metric group. -
getNewGameSessionProtectionPolicy
A game session protection policy to apply to all game sessions hosted on instances in this fleet. -
setNewGameSessionProtectionPolicy
A game session protection policy to apply to all game sessions hosted on instances in this fleet. -
getPerInstanceContainerGroupDefinitionName
The name of the container group definition that will be created per instance. -
setPerInstanceContainerGroupDefinitionName
The name of the container group definition that will be created per instance. -
getScalingPolicies
A list of rules that control how a fleet is scaled. -
setScalingPolicies
A list of rules that control how a fleet is scaled. -
setScalingPolicies
A list of rules that control how a fleet is scaled. -
getTags
An array of key-value pairs to apply to this resource. -
setTags
An array of key-value pairs to apply to this resource.
-