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="2025-01-04T09:06:23.068Z")
@Stability(Stable)
public class CfnContainerFleet
extends CfnResource
implements IInspectable, ITaggableV2
Describes an Amazon GameLift managed container fleet.
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
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnContainerFleet
.static interface
The set of port numbers to open on each instance in a container fleet.static interface
Set of rules for processing a deployment for a container fleet update.static interface
Information about the most recent deployment for the container fleet.static interface
A policy that puts limits on the number of game sessions that a player can create within a specified span of time.static interface
A range of IP addresses and port settings that allow inbound traffic to connect to processes on an instance in a fleet.static interface
Current resource capacity settings in a specified fleet or location.static interface
A remote location where a multi-location fleet can deploy game servers for game hosting.static interface
A method for collecting container logs for the fleet.static interface
Rule that controls how a fleet is scaled.static interface
Settings for a target-based scaling policy.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnContainerFleet
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnContainerFleet
(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 fleet resource and uniquely identifies it.A unique identifier for the container fleet to retrieve.The Amazon Resource Name ( ARN ) that is assigned to the fleet's game server container group.The calculated maximum number of game server container group that can be deployed on each fleet instance.The Amazon Resource Name ( ARN ) that is assigned to the fleet's per-instance container group.The current status of the container fleet.Indicates whether the fleet uses On-Demand or Spot instances for this fleet.Tag Manager which manages the tags for this resource.Set of rules for processing a deployment for a container fleet update.A meaningful description of the container fleet.The unique identifier for an AWS Identity and Access Management (IAM) role with permissions to run your containers on resources that are managed by Amazon GameLift.The name of the fleet's game server container group definition, which describes how to deploy containers with your game server build and support software onto each fleet instance.The number of times to replicate the game server container group on each fleet instance.A policy that limits the number of game sessions that each individual player can create on instances in this fleet.The set of port numbers to open on each instance in a container fleet.The IP address ranges and port settings that allow inbound traffic to access game server processes and other processes on this fleet.The Amazon EC2 instance type to use for all instances in the fleet.The method that is used to collect container logs for the fleet.The name of an AWS CloudWatch metric group to add this fleet to.Determines whether Amazon GameLift can shut down game sessions on the fleet that are actively running and hosting players.The name of the fleet's per-instance container group definition.A list of rules that control how a fleet is scaled.getTags()
An array of key-value pairs to apply to this resource.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setBillingType
(String value) Indicates whether the fleet uses On-Demand or Spot instances for this fleet.void
Set of rules for processing a deployment for a container fleet update.void
Set of rules for processing a deployment for a container fleet update.void
setDescription
(String value) A meaningful description of the container fleet.void
setFleetRoleArn
(String value) The unique identifier for an AWS Identity and Access Management (IAM) role with permissions to run your containers on resources that are managed by Amazon GameLift.void
The name of the fleet's game server container group definition, which describes how to deploy containers with your game server build and support software onto each fleet instance.void
The number of times to replicate the game server container group on each fleet instance.void
A policy that limits the number of game sessions that each individual player can create on instances in this fleet.void
A policy that limits the number of game sessions that each individual player can create on instances in this fleet.void
The set of port numbers to open on each instance in a container fleet.void
The set of port numbers to open on each instance in a container fleet.void
setInstanceInboundPermissions
(List<Object> value) The IP address ranges and port settings that allow inbound traffic to access game server processes and other processes on this fleet.void
The IP address ranges and port settings that allow inbound traffic to access game server processes and other processes on this fleet.void
setInstanceType
(String value) The Amazon EC2 instance type to use for all instances in the fleet.void
setLocations
(List<Object> value) void
setLocations
(IResolvable value) void
setLogConfiguration
(IResolvable value) The method that is used to collect container logs for the fleet.void
The method that is used to collect container logs for the fleet.void
setMetricGroups
(List<String> value) The name of an AWS CloudWatch metric group to add this fleet to.void
Determines whether Amazon GameLift can shut down game sessions on the fleet that are actively running and hosting players.void
The name of the fleet's per-instance container group definition.void
setScalingPolicies
(List<Object> value) A list of rules that control how a fleet is scaled.void
setScalingPolicies
(IResolvable value) A list of rules that control how a fleet is scaled.void
An 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, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
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
-
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:
inspect
in 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:
renderProperties
in 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 fleet resource and uniquely identifies it. ARNs are unique across all Regions. Format isarn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912
. In a GameLift fleet ARN, the resource ID matches theFleetId
value. -
getAttrFleetId
A unique identifier for the container fleet to retrieve. -
getAttrGameServerContainerGroupDefinitionArn
The Amazon Resource Name ( ARN ) that is assigned to the fleet's game server container group. The ARN value also identifies the specific container group definition version in use. -
getAttrMaximumGameServerContainerGroupsPerInstance
The calculated maximum number of game server container group that can be deployed on each fleet instance.The calculation depends on the resource needs of the container group and the CPU and memory resources of the fleet's instance type.
-
getAttrPerInstanceContainerGroupDefinitionArn
The Amazon Resource Name ( ARN ) that is assigned to the fleet's per-instance container group. The ARN value also identifies the specific container group definition version in use. -
getAttrStatus
The current status of the container fleet.PENDING
-- A new container fleet has been requested.CREATING
-- A new container fleet resource is being created.CREATED
-- A new container fleet resource has been created. No fleet instances have been deployed.ACTIVATING
-- New container fleet instances are being deployed.ACTIVE
-- The container fleet has been deployed and is ready to host game sessions.UPDATING
-- Updates to the container fleet is being updated. A deployment is in progress.
-
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManager
in interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getFleetRoleArn
The unique identifier for an AWS Identity and Access Management (IAM) role with permissions to run your containers on resources that are managed by Amazon GameLift. -
setFleetRoleArn
The unique identifier for an AWS Identity and Access Management (IAM) role with permissions to run your containers on resources that are managed by Amazon GameLift. -
getBillingType
Indicates whether the fleet uses On-Demand or Spot instances for this fleet. -
setBillingType
Indicates whether the fleet uses On-Demand or Spot instances for this fleet. -
getDeploymentConfiguration
Set of rules for processing a deployment for a container fleet update. -
setDeploymentConfiguration
Set of rules for processing a deployment for a container fleet update. -
setDeploymentConfiguration
@Stability(Stable) public void setDeploymentConfiguration(@Nullable CfnContainerFleet.DeploymentConfigurationProperty value) Set of rules for processing a deployment for a container fleet update. -
getDescription
A meaningful description of the container fleet. -
setDescription
A meaningful description of the container fleet. -
getGameServerContainerGroupDefinitionName
The name of the fleet's game server container group definition, which describes how to deploy containers with your game server build and support software onto each fleet instance. -
setGameServerContainerGroupDefinitionName
The name of the fleet's game server container group definition, which describes how to deploy containers with your game server build and support software onto each fleet instance. -
getGameServerContainerGroupsPerInstance
The number of times to replicate the game server container group on each fleet instance. -
setGameServerContainerGroupsPerInstance
The number of times to replicate the game server container group on each fleet instance. -
getGameSessionCreationLimitPolicy
A policy that limits the number of game sessions that each individual player can create on instances in this fleet. -
setGameSessionCreationLimitPolicy
A policy that limits the number of game sessions that each individual player can create on instances in this fleet. -
setGameSessionCreationLimitPolicy
@Stability(Stable) public void setGameSessionCreationLimitPolicy(@Nullable CfnContainerFleet.GameSessionCreationLimitPolicyProperty value) A policy that limits the number of game sessions that each individual player can create on instances in this fleet. -
getInstanceConnectionPortRange
The set of port numbers to open on each instance in a container fleet. -
setInstanceConnectionPortRange
The set of port numbers to open on each instance in a container fleet. -
setInstanceConnectionPortRange
@Stability(Stable) public void setInstanceConnectionPortRange(@Nullable CfnContainerFleet.ConnectionPortRangeProperty value) The set of port numbers to open on each instance in a container fleet. -
getInstanceInboundPermissions
The IP address ranges and port settings that allow inbound traffic to access game server processes and other processes on this fleet. -
setInstanceInboundPermissions
The IP address ranges and port settings that allow inbound traffic to access game server processes and other processes on this fleet. -
setInstanceInboundPermissions
The IP address ranges and port settings that allow inbound traffic to access game server processes and other processes on this fleet. -
getInstanceType
The Amazon EC2 instance type to use for all instances in the fleet. -
setInstanceType
The Amazon EC2 instance type to use for all instances in the fleet. -
getLocations
-
setLocations
-
setLocations
-
getLogConfiguration
The method that is used to collect container logs for the fleet. -
setLogConfiguration
The method that is used to collect container logs for the fleet. -
setLogConfiguration
@Stability(Stable) public void setLogConfiguration(@Nullable CfnContainerFleet.LogConfigurationProperty value) The method that is used to collect container logs for the fleet. -
getMetricGroups
The name of an AWS CloudWatch metric group to add this fleet to. -
setMetricGroups
The name of an AWS CloudWatch metric group to add this fleet to. -
getNewGameSessionProtectionPolicy
Determines whether Amazon GameLift can shut down game sessions on the fleet that are actively running and hosting players. -
setNewGameSessionProtectionPolicy
Determines whether Amazon GameLift can shut down game sessions on the fleet that are actively running and hosting players. -
getPerInstanceContainerGroupDefinitionName
The name of the fleet's per-instance container group definition. -
setPerInstanceContainerGroupDefinitionName
The name of the fleet's per-instance container group definition. -
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.
-